import http from "@/utils/http.ts";

export interface File {
    id?: number;
    fileName?: string;
    fileType?: string;
    fileSize?: number;
    filePath?: string;
    modelCode?: string;
    busiKey?: string;
    createTime?: string;
    updateTime?: string;
}

export function queryFile(modelCode: string, busiKey: string) {
    return http.post(`/file/queryFile?modelCode=${modelCode}&busiKey=${busiKey}`)
}

export function removeFile(fileId: number | string) {
    return http.post(`/file/removeFile?fileId=${fileId}`)
}
